dreamweaver.behaviorInspector.getBehaviorCount()

Availability 3.0
Description Counts the number of actions attached to the currently selected element through event handlers.
Arguments None.
Returns An integer representing the number of actions attached to the element. This number is equivalent to the number of actions visible in the Behavior inspector and includes both Dreamweaver behavior actions and custom JavaScript.
Enabler None.
Example A call to dw.behaviorInspector.getBehaviorCount() for the selected link <A HREF="javascript:setCookie()" onClick="MM_popupMsg('A cookie has been set.');parent.rightframe.location.href='aftercookie.html'"> would return 2.